/**
 * HongsCORE 前台布局
 * 作者: 黄弘<kevin.hongs@gmail.com>
 * 版本: 2018/07/27 23:00
 */

html ,
body {
    background: #f8f8f8;
    height : 100%;
}

#context {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
#bodybox {
    flex: 1;
    padding-bottom: 39px;
}
#headbox {
    padding-top   : 51px;
}

#headbox .uhead {
    width :  36px;
    height:  36px;
    margin: -13px  4px;
    border-radius: 50%;
    background-size  : 100% 100%;
    background-repeat: no-repeat;
    background-position:  center;
    display: inline-block;
}
#headbox .ulogo {
    width :  50px;
    height:  50px;
    margin: -19px 0 -19px -15px ;
    background-size  : 100% 100%;
    background-repeat: no-repeat;
    background-position:  center;
    display: inline-block;
}

#headbox a#logout {
    color: #a44;
}
#headbox a#logout:hover ,
#headbox a#logout:hover {
    color: #d55;
}

/* 底部导航菜单样式 */
#headbox .navbar-fixed-bottom ,
#headbox .navbar-fixed-bottom blockquote {
    min-height: 0;
    margin-bottom: 0;
    font-size : 12px;
}
#headbox .navbar-fixed-bottom .copy-right a ,
#headbox .navbar-fixed-bottom .site-links a {
    margin-right : 1em;
}
#headbox .navbar-fixed-bottom {
    border-shadow: 0 -1px 5px rgba(0,0,0,0.075), inset 0 -1px 0 rgba(255,255,255,0.15);
}
@media (min-width: 768px) {
    #bodybox>.container {
        margin-top: 20px;
    }
    #headbox .navbar-fixed-bottom {
        border-top-left-radius : 4px;
        border-top-right-radius: 4px;
    }
}

/* 主导航条默认样式 */
#headbox .breadcrumb {
    margin-top: 20px;
    margin-bottom: 0;
}
#headbox .breadcrumb .close {
    font-weight : inherit;
    color: inherit;
}
#headbox .breadcrumb a {
    text-decoration: none;
    color: #777;
}
#headbox .breadcrumb a:hover ,
#headbox .breadcrumb a:focus ,
#headbox .breadcrumb .active a {
    color: #555;
}

/* 标准表单分块布局 */
.panel>.form-body ,
.panel>.form-foot {
    padding: 15px 15px 0 15px;
}
.panel+.form-foot {
    padding:  0 15px 5px 15px;
}
.panel>.form-body+.form-foot {
    border-top: solid 1px #ddd;
}
.form-body:after ,
.form-foot:after {
    display: table;
    content: " "  ;
    clear  : both ;
}
.form-body>:last-child:is(hr) ,
.form-foot>:last-child:is(br) {
    display: none ; /* 兼容占位 */
}
.form-body legend {
    font-size : 18px;
    margin-bottom: 15px;
}
.checkbox  legend ,
.radio     legend {
    font-size : inherit;
    margin-bottom: 0;
}
.form-sub.panel-body {
    padding-left : 0;
    padding-right: 0;
}

/* 筛选表单紧凑布局 */
@media (min-width : 992px) {
.row.form-group.filt-group {
    float: left;
    width: 50% ;
    margin-left : 0;
    margin-right: 0;
}
}

/* 隐藏受限的搜索框 */
.input-group .input-search:disabled ,
.input-group .input[type=search]:disabled {
    visibility: hidden;
}
.input-group .input-search:disabled+.input-group-btn>.btn:first-child ,
.input-group .input[type=search]:disabled+.input-group-btn>.btn:first-child {
    border-radius: 4px 0 0 4px;
}
.input-group .input-search:disabled+.input-group-btn>.btn>.bi-hi-search:before ,
.input-group .input[type=search]:disabled+.input-group-btn>.btn>.bi-hi-search:before {
    content: "\f130";
}

/** 独立表单样式 **/

body.plain-page {
    height: 100%;
    background: #f4f4f4;
}
body.plain-page .container {
    height: auto;
    background: #ffffff;
    padding: 20px 15px 0 15px;
    box-shadow: 0px 1px 8px rgba(0,0,0,0.1), inset 0px 1px 0px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    body.plain-page .container {
        padding: 40px 40px 20px 40px;
    }
}
@media (min-width: 992px) {
    body.plain-page .container {
        padding: 40px 80px 20px 80px;
    }
}
@media (min-width: 1200px) {
    body.plain-page .container {
        width: 970px;
    }
}

body.plain-page h1 {
    font-size : 24px;
    text-align: center ;
}
body.plain-page header ,
body.plain-page footer {
    text-align: justify;
}

/* 表单布局 */
.survey-form .form-group {
    margin-left : 0;
    margin-right: 0;
}
.survey-form .radio    label ,
.survey-form .checkbox label {
    display: block;
}

/* 按钮固定 */
.survey-form .foot-fixed .form-body {
    margin-bottom: 95px;
}
.survey-form .foot-fixed .form-foot {
    position: fixed;
    width : 100%;
    padding : 0;
    margin: 0;
    border: 0;
    bottom: 0;
    left: 0;
}
.survey-form .foot-fixed .form-foot .form-group {
    background: #fff;
    box-shadow: 0 -5px 5px #eee;
    border-top: 1px solid  #eee;
    padding: 20px 15px;
    margin :  0   auto;
}
@media (min-width: 768px) {
    .survey-form .foot-fixed .form-body {
        margin-bottom: 75px;
    }
    .survey-form .foot-fixed .form-foot .form-group {
        width: 750px;
    }
}
@media (min-width: 992px) {
    .survey-form .foot-fixed .form-body {
        margin-bottom: 75px;
    }
    .survey-form .foot-fixed .form-foot .form-group {
        width: 970px;
    }
}
